package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 项目信息表 实体类
 * 表名：ra_items
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_items")
public class RaItems implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 项目名称
     */
    @Column(name = "items_name", nullable = false, length = 256)
    private String itemsName;
    
    /**
     * 项目描述
     */
    @Column(name = "items_desc", length = 65535)
    private String itemsDesc;
    
    /**
     * 负责人名称
     */
    @Column(name = "principal_name", length = 128)
    private String principalName;
    
    /**
     * 参与人
     */
    @Column(name = "players_name", length = 256)
    private String playersName;
    
    /**
     * 项目开始时间
     */
    @Column(name = "start_date")
    private java.time.LocalDateTime startDate;
    
    /**
     * 项目结束时间
     */
    @Column(name = "end_date")
    private java.time.LocalDateTime endDate;
    
    /**
     * 反应类型
     */
    @Column(name = "reaction_type", length = 32)
    private String reactionType;
    
    /**
     * 状态（0、未开始 1、投入中）
     * 默认值: 0
     */
    @Column(name = "status")
    private Byte status;
    
    /**
     * 租户主键
     * 默认值: 1
     */
    @Column(name = "tenant_id", nullable = false)
    private Integer tenantId;
    
    /**
     * 是否删除（0、否 1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建人
     */
    @Column(name = "create_by", nullable = false, length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新人
     */
    @Column(name = "update_by", nullable = false, length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaItems{" +
            "id=" + id +
            ", itemsName=" + itemsName +
            ", itemsDesc=" + itemsDesc +
            ", principalName=" + principalName +
            ", playersName=" + playersName +
            ", startDate=" + startDate +
            ", endDate=" + endDate +
            ", reactionType=" + reactionType +
            ", status=" + status +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 